/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-04-11
*/
package com.rzico.order.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * <pre>
 *   库存表数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_warehouse_stock")
public class WarehouseStock {

    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected java.util.Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected java.util.Date modifyDate;

    @ApiModelProperty(value = "移动加权成本" )
    protected BigDecimal cost;

    @ApiModelProperty(value = "待出库库存" )
    protected BigDecimal allocatedStock;

    @ApiModelProperty(value = "待入库库存" )
    protected BigDecimal pendingStock;

    @ApiModelProperty(value = "当前库存" )
    protected BigDecimal stock;

    @ApiModelProperty(value = "商品" )
    protected Long productId;

    @ApiModelProperty(value = "商品" )
    protected Long goodsId;

    @ApiModelProperty(value = "所在仓库" )
    protected Long shopId;

    @ApiModelProperty(value = "所属企业" )
    protected Long enterpriseId;

//    @JsonIgnore
    @ApiModelProperty(value = "本次操作库存数量", hidden = true)
    @Transient
    protected BigDecimal quantity;
}
